<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- 引入主题css文件 -->
    <link href="https://cdn.quilljs.com/1.0.0/quill.snow.css" rel="stylesheet">

    <!-- 引入js文件 -->
    <script src="https://cdn.quilljs.com/1.0.0/quill.js"></script>

    <title>Https练习</title>
</head>

<body style="height: 100%;">
    <!-- 自定义编辑器工具栏 -->
    <div id="toolbar">
        <!--粗体-->
        <button class="ql-bold"></button>
        <!--斜体-->
        <button class="ql-italic"></button>
        <!--字体-->
        <select class="ql-font">
            <option value="monospace"></option>
            <option value="consolas"></option>
            <option value="serif"></option>
        </select>
    </div>

    <div>
        <!-- 创建编辑容器 -->
        <div id="editor">
            <p>winter老师和然叔yyds</p>
        </div>
    </div>


    <!-- 初始化编辑器，snow主题 -->
    <script>
        const editor = new Quill('#editor', {
            modules: {
                toolbar: '#toolbar'
            },
            theme: 'snow'
        });
    </script>
</body>

</html>